package com.quan.TemplateEditor.enums;

import java.util.HashMap;
import java.util.Map;

public enum FeatureType {
    POINT,LINESTRING,POLYGON;
    // 转换成为 Map<String, FeatureType>, 对外提供查询和遍历功能
    public static Map<String, FeatureType> toMap() {
        Map<String, FeatureType> map = new HashMap<>();
        for (FeatureType featureType : FeatureType.values()) {
            map.put(featureType.name(), featureType);
        }
        return map;
    }
}
